package main

import (
	"fmt"
	"time"
)

// switch 的 case 语句从上到下顺次执行，直到匹配成功时停止。之后的不会被执行
func main() {
	fmt.Println("When is Saturday?")
	switch today := time.Now().Weekday(); time.Saturday {
	case today:
		fmt.Println("Today .")
	case today + 1:
		fmt.Println("Tomorrow is.")
	case today + 2:
		fmt.Println("the day after tomorrow is.")
	default:
		fmt.Println("too far away.")
	}

}
